package com.ssh.ser.common;

import java.util.List;

import com.ssh.dao.StaffDAOI;
import com.ssh.entity.Staff;
/*
 *
 * @author hdrobot
 * method desc
 * implement StaffInfoServiceI interface
 * @parameter staffId the  staff id
 * @return staff
*/
public class StaffInfoServiceImpl implements StaffInfoServiceI {

	private StaffDAOI staffDAOI ;

	/**
	 * @return the staffDAOI
	 */
	public StaffDAOI getStaffDAOI() {
		return staffDAOI;
	}

	/**
	 * @param staffDAOI the staffDAOI to set
	 */
	public void setStaffDAOI(StaffDAOI staffDAOI) {
		this.staffDAOI = staffDAOI;
	}

	@Override
	public Staff editViewStaffInfo(String staffId) {
		// TODO Auto-generated method stub
		System.out.println("staffDAOI.queryStaffByStaffId(staffId)"+staffDAOI.queryStaffByStaffId(staffId));;
		return staffDAOI.queryStaffByStaffId(staffId);
	}

	/* (non-Javadoc)
	 * @see com.ssh.ser.staffInfo.StaffInfoServiceI#editViewStaffInfo(java.lang.String[])
	 */
	@Override
	public List<Staff> editViewStaffInfo(String... strings) {
		// TODO Auto-generated method stub
		return null;
	}

	/* (non-Javadoc)
	 * @see com.ssh.ser.staffInfo.StaffInfoServiceI#ViewStaffInfo(java.lang.String)
	 */
	@Override
	public Staff ViewStaffInfoById(String staffId) {
		// TODO Auto-generated method stub
		return  staffDAOI.queryStaffByStaffId(staffId);
	}


}
